c:
::进入批处理所在目录 cd %~dp0 
::进入批处理所在目录的bin目录 cd %~dp0bin\

@cd %~dp0 
@echo %~dp0 

@cd %cd%
@echo %cd%

:: 获取命令帮助 xxx /?
:: cd /?

@echo %SystemRoot%
@echo %ProgramFiles%
@echo %USERPROFILE%
@echo %OS%
@echo %Path%

::传递参数给批处理文件
@call 02_pass_paras.bat "hello"	"world"	%SystemRoot%	%Path%


::Echo 命令
@echo add hello world! > C:\Users\yuanchengwei\Desktop\windows_bat_cmd\log.txt
@echo append hello world! >> C:\Users\yuanchengwei\Desktop\windows_bat_cmd\log.txt